home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / develop / symcoff.arc / PAOUTHDR.H < prev    next >
C/C++ Source or Header  |  1980-01-01  |  2KB  |  51 lines

  1. /* Copyright 1985 by Motorola Inc. */ 
  2. /* @(#)paouthdr.h    2.2 */
  3. typedef    struct aouthdr {
  4.     short    magic;        /* see magic.h                */
  5.     short    vstamp;        /* version stamp            */
  6.     long    tsize;        /* text size in bytes, padded to FW
  7.                    bdry                    */
  8.     long    dsize;        /* initialized data "  "        */
  9.     long    bsize;        /* uninitialized data "   "        */
  10. #ifdef u3b
  11.     long     dum1;
  12.     long     dum2;        /*Pad to entry point    */
  13. #endif
  14. /*
  15.     "entry" is a reserved word per K&R, pg. 180.  On System V, this is only
  16.     true when it is used outside of a structure.  Other systems may complain
  17.     in either case.  Thus the "ifdef" is used below.  See "pasm/hd/paouthdr.h".
  18. */
  19. #ifdef  apollo
  20.     long    entry_prog;    /* entry pt.                */
  21. #else
  22.     long    entry;        /* entry pt.                */
  23. #endif
  24.     long    text_start;    /* base of text used for this file    */
  25.     long    data_start;    /* base of data used for this file    */
  26. } AOUTHDR;
  27.  
  28.  
  29. #define S_IDENT 30
  30.  
  31. typedef struct opthdr    /* stucter of optional header of COFF file */
  32. {
  33.    short   magic;        /* magic number        */
  34.    short   version;        /* version stamp    */
  35.    short   revision;        /* revision stamp    */
  36.    char    module[10];        /* module name        */
  37.    /* NOTE: this next field must be at an offset of    */
  38.    /*       16 bytes from the start of the structure    */
  39. #ifdef  apollo
  40.    long       entry_prog;        /* start of program    */
  41. #else
  42.    long    entry;        /* start of program    */
  43. #endif
  44.    char   comment[S_IDENT];    /* comment        */
  45. } PAOUTHDR;
  46.  
  47. #define OPT_H_EXEC  0407   /* magic number for optional header if object 
  48.                                                                 is executable */
  49. #define POPTHSZ sizeof(struct opthdr)
  50. /* Copyright 1985 by Motorola Inc. */
  51.